package com.bkfm.framework.sys.api.service;

import java.util.List;
import java.util.Map;

import org.yak.core.service.IBaseService;

import com.bkfm.framework.sys.entity.BkfmMenu;
import com.bkfm.framework.sys.entity.BkfmMenuBtnPermis;
import com.bkfm.framework.sys.entity.BkfmUsers;

public interface IBkfmMenuService extends IBaseService<BkfmMenu>{

	/**
	 * 查询用户对应菜单
	 * @param bkfmUser
	 * @return
	 * @throws Exception
	 */
	public List<BkfmMenu> queryUserMenuList(BkfmUsers bkfmUser)throws Exception;
	
	/**
	 * 添加用户桌面快捷菜单
	 * @param menu
	 * @throws Exception
	 */
	public void addUserDesktopMenu(BkfmMenu menu)throws Exception;
	
	/**
	 * 查询用户桌面快捷菜单
	 * @param bkfmUser
	 * @return
	 * @throws Exception
	 */
	public List<BkfmMenu> queryUserDesktopMenuList(BkfmUsers bkfmUser)throws Exception;
	
	/**
	 * 查询用户所属菜单页面的功能按钮
	 * @param bkfmUser
	 * @return
	 * @throws Exception
	 */
	public Map<String,List<String>> queryUserMenuBtnPermis(BkfmUsers bkfmUser)throws Exception;
	
	/**
	 * 查询用户对应的业务模型功能权限
	 * @param bkfmUser
	 * @return
	 * @throws Exception
	 */
	public Map<String,List<String>> queryUserModelBtnPermis(BkfmUsers bkfmUser)throws Exception;
}
